package com.hospital.demo.mapper.gaoyuran;

import com.hospital.demo.model.gaoyuran.Application;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ApplicationMapper {

    //提交申请表
    int insert(Application record);

    //查看全部申请表
    List<Application> findAllApplication();
    //查看未审批申请表
    List<Application> findAllApplicationno();
    //查看已审批申请表
    List<Application> findAllApplicationyes();
    //双查询
    List<Application> selectAppByD(Application application);

    //通过id查看申请表
    List<Application> selectByPrimaryKey(Integer aid);

    //更新申请表状态
    int updateByPrimaryKey(Application record);

}
